<?php defined('TSTP_VERSION') or die('forbidden');


/**
* MLT Web Engine
* http://www.molotsoft.ru
*
* @package MLT_WE
* @subpackage Test_Types
* @author Ivan Chistyakov <ivan@molotsoft.ru>
* @version $Id: subclass.tstp.php 150 2009-03-07 07:39:50Z molotsoft@gmail.com $
* @link $HeadURL: http://test-types.googlecode.com/svn/tags/2.0.1/types/object/subclass.tstp.php $
*/


function tstp_subclass($var, $class_name = NULL) {
	return is_object($var) && (!is_null($class_name) ? is_subclass_of($var, trim($class_name)) : TRUE);
}

function tstp_subcls($var, $class_name = NULL) { return tstp_subclass($var, $class_name); }
function tstp_scls($var, $class_name = NULL) { return tstp_subclass($var, $class_name); }
function tstp_sc($var, $class_name = NULL) { return tstp_subclass($var, $class_name); }


?>